package com.bestpay.demo2.task;

import com.bestpay.drip.commons.log.EnableDynamicLog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * <p>
 * 这个启动类并未使用{@code @EnableProduct}注解扫描被{@code @Event}注解标记的接口，而是仅仅使用{@code @ComponentScan}注解进行包扫描将XxxProduct类注册为了普通的Spring Bean。
 * <hr>
 * <blockquote><pre>
 *     &#64;ComponentScan({ "com.bestpay.demo2" })
 * </pre></blockquote>
 * <hr>
 * <p>
 */
@EnableDynamicLog
@ComponentScan({"com.bestpay.demo2"})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}